<?php

include '../../function.php';

if(isset($_GET['id'])){
	$id = $_GET['id'];

	$db = include './db.php';

	unset($db[$id]);

	$db = var_export($db,true);

	$db = "<?php return ".$db."?>";

	file_put_contents('./db.php', $db);

	header("Location:./index.php");
}else{
	error('删除id不存在，请重新操作','./index.php',2);
} 




 ?>